Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Jan 23, 2026

Adds support for state variables in inline subworkflow nodes by adding the stateVariables field to InlineSubworkflowNodeData type/serializer and updating the generator to use it instead of hardcoding an empty array. This prevents state files from "disappearing" in nested subworkflow scenarios.


… nodes

- Add stateVariables field to InlineSubworkflowNodeData type
- Update InlineSubworkflowNodeDataSerializer to handle stateVariables
- Update inline-subworkflow-node.ts to use state variables from node data
- Create test fixture that verifies both parent and inner state files are generated

Co-Authored-By: vargas@vellum.ai <vargas@vellum.ai>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

"
`;

exports[`generateCode > should generate code for %1 inline-subworkflow-with-state-variables.ts > nodes/subworkflow_with_state/state.py 1`] = `
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ApolloBot followup this PR to do the same thing but for inline map nodes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"
`;

exports[`generateCode > should generate code for %1 inline-subworkflow-with-state-variables.ts > state.py 1`] = `
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ApolloBot followup this PR to do the same thing but for inline subworkflow tools within Agent Nodes

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dvargas92495 dvargas92495 marked this pull request as ready for review January 23, 2026 19:50
@dvargas92495 dvargas92495 merged commit 3a5717e into main Jan 23, 2026
8 checks passed
@dvargas92495 dvargas92495 deleted the devin/APO-2825-1769182209-state-variables-inline-subworkflow branch January 23, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants